<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<style type="text/css">
			#d{
				border: 1px solid red;
				width: 200px;
				height: 200px;
			}
		</style>
		<script type="text/javascript">
			function addheight(){
				var thisdiv=document.getElementById("d");
				var h=document.defaultView.getComputedStyle(thisdiv,null).height;
				thisdiv.style.height=parseInt(h)+10+"px";
				
			}
		</script>
	</head>
	<body>
		<div id="d">
			
		</div>
		<input type="button" id="" value="加高" onclick="addheight()"/>
	</body>
</html>
